package com.health.warehouse.model.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author zhexueqi
 * @ClassName MedicineTransferRequest
 * @since 2024/9/2    14:40
 */
@Data
public class MedicineTransferRequest {

    /**
     * 申请药物调取医院ID
     */
    @NotNull
    @Min(value = 1, message = "申请药物调取医院ID不能小于1")
    @Schema(description = "申请药物调取医院ID", example = "1")
    private Long fromHospitalId;

    /**
     * 授权药物调用医院ID(被调取)
     */
    @NotNull
    @Min(value = 1, message = "授权药物调用医院ID不能小于1")
    @Schema(description = "授权药物调用医院ID", example = "2")
    private Long toHospitalId;

    /**
     * 仓库ID
     */
    @NotNull
    @Min(value = 1, message = "仓库ID不能小于1")
    @Schema(description = "仓库ID", example = "1")
    private Long warehouseId;

    /**
     * 药物、器材、样本名称
     */
    @NotBlank
    @Schema(description = "药物、器材、样本名称", example = "阿司匹林")
    private String itemName;

    /**
     * 物品类别（药物、器材、病人样本、其它）
     */
    @NotNull
    @Schema(description = "物品类别（药物、器材、病人样本、其它）", example = "1 (药物)")
    private Integer itemType;

    /**
     * 调取数量
     */
    @NotNull
    @Min(value = 1, message = "调取数量不能小于1")
    @Schema(description = "调取数量", example = "10")
    private Integer quantity;


}
